package zhao.ben.quan.dao;

import zhao.ben.quan.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 预约设置持久层
 */
public interface OrderSettingDao {


    //添加
    public void add(OrderSetting orderSetting);
    //根据日期修改预约人数
    public void editNumberByOrderDate(OrderSetting orderSetting);
    //查询是否已经设置人数
    public long findCountByOrderDate(Date orderDate);
    //根据日期范围查询
    public List<OrderSetting> getOrderSettingByMonth(Map map);

    //根据预约日期查询预约设置信息
    OrderSetting findByOrderDate(Date parseString2Date);

    //更新已预约设置
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
